
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<c:if test="${empty ALL_GOODS_LIST}">
    <c:redirect url="/goods"></c:redirect>
</c:if>
<body>
<form action="../goods" method="post">
    <table border="1" align="center" width="80%">
        <caption>
            <a href="gwc.jsp">查看购物车</a>
        </caption>
        <tr>
            <td width="10%">选择</td>
            <td>序号</td>
            <td>名称</td>
            <td>价格</td>
        </tr>
        <c:forEach var="gi" varStatus="j" items="${ALL_GOODS_LIST}">
            <tr>
                <td><input type="checkbox" name="ids" value="${gi.goodsId}"></td>
                <td>${j.count}</td>
                <td>${gi.goodsName}</td>
                <td>${gi.goodsPrice}</td>
            </tr>
        </c:forEach>
        <tr>
            <td align="right" colspan="4"><button>加入购物车</button></td>
        </tr>
    </table>
</form>
</body>
</html>
